<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Bayesian Network: bn::matrix&lt; Elem &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Bayesian Network
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>bn</b></li><li class="navelem"><a class="el" href="classbn_1_1matrix.html">matrix</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classbn_1_1matrix-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">bn::matrix&lt; Elem &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Provide a class representing dinamic N dimensions (N is equal to or greater than 1).  
 <a href="classbn_1_1matrix.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="matrix_8hpp_source.html">matrix.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a3b0193e28e4661e26b3a71c82518e7fa"><td class="memItemLeft" align="right" valign="top"><a id="a3b0193e28e4661e26b3a71c82518e7fa"></a>
typedef Elem&#160;</td><td class="memItemRight" valign="bottom"><b>element_type</b></td></tr>
<tr class="separator:a3b0193e28e4661e26b3a71c82518e7fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d370d1dc34d8609042be8353a866548"><td class="memItemLeft" align="right" valign="top"><a id="a3d370d1dc34d8609042be8353a866548"></a>
typedef std::vector&lt; std::size_t &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>sizes_type</b></td></tr>
<tr class="separator:a3d370d1dc34d8609042be8353a866548"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a276c5cd17b58ec06daaaa986e9c64a19"><td class="memItemLeft" align="right" valign="top"><a id="a276c5cd17b58ec06daaaa986e9c64a19"></a>
typedef std::vector&lt; std::size_t &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>steps_type</b></td></tr>
<tr class="separator:a276c5cd17b58ec06daaaa986e9c64a19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4db152df9d3c85d4dce766aebe1a00b1"><td class="memItemLeft" align="right" valign="top"><a id="a4db152df9d3c85d4dce766aebe1a00b1"></a>
typedef std::vector&lt; element_type &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>data_type</b></td></tr>
<tr class="separator:a4db152df9d3c85d4dce766aebe1a00b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a6a61a8a5a11ff61a4500f63572271eab"><td class="memItemLeft" align="right" valign="top"><a id="a6a61a8a5a11ff61a4500f63572271eab"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1matrix.html#a6a61a8a5a11ff61a4500f63572271eab">matrix</a> ()</td></tr>
<tr class="memdesc:a6a61a8a5a11ff61a4500f63572271eab"><td class="mdescLeft">&#160;</td><td class="mdescRight">(Default ctor) Initialize matrix as empty. <br /></td></tr>
<tr class="separator:a6a61a8a5a11ff61a4500f63572271eab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aacae73faaa834a43566c9faf21aa49a6"><td class="memTemplParams" colspan="2">template&lt;class T &gt; </td></tr>
<tr class="memitem:aacae73faaa834a43566c9faf21aa49a6"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classbn_1_1matrix.html#aacae73faaa834a43566c9faf21aa49a6">matrix</a> (T const &amp;<a class="el" href="classbn_1_1matrix.html#a9c7cfceac13610b514bbbd989ca8cfa6">sizes</a>)</td></tr>
<tr class="memdesc:aacae73faaa834a43566c9faf21aa49a6"><td class="mdescLeft">&#160;</td><td class="mdescRight">(ctor) Initialize matrix according to array of size-hint.  <a href="#aacae73faaa834a43566c9faf21aa49a6">More...</a><br /></td></tr>
<tr class="separator:aacae73faaa834a43566c9faf21aa49a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e8cec7223de6b06c87c63b4902bc0e1"><td class="memTemplParams" colspan="2">template&lt;class T &gt; </td></tr>
<tr class="memitem:a6e8cec7223de6b06c87c63b4902bc0e1"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classbn_1_1matrix.html#a6e8cec7223de6b06c87c63b4902bc0e1">matrix</a> (T const &amp;<a class="el" href="classbn_1_1matrix.html#a9c7cfceac13610b514bbbd989ca8cfa6">sizes</a>, Elem const &amp;default_value)</td></tr>
<tr class="memdesc:a6e8cec7223de6b06c87c63b4902bc0e1"><td class="mdescLeft">&#160;</td><td class="mdescRight">(ctor) Initialize matrix by filling with default_value according to array of size-hint.  <a href="#a6e8cec7223de6b06c87c63b4902bc0e1">More...</a><br /></td></tr>
<tr class="separator:a6e8cec7223de6b06c87c63b4902bc0e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a459c8a266ba71f31763d56a55664d1bd"><td class="memTemplParams" colspan="2">template&lt;class T , class InputIterator &gt; </td></tr>
<tr class="memitem:a459c8a266ba71f31763d56a55664d1bd"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classbn_1_1matrix.html#a459c8a266ba71f31763d56a55664d1bd">matrix</a> (T const &amp;<a class="el" href="classbn_1_1matrix.html#a9c7cfceac13610b514bbbd989ca8cfa6">sizes</a>, InputIterator first, InputIterator last)</td></tr>
<tr class="memdesc:a459c8a266ba71f31763d56a55664d1bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">(ctor) Initialize matrix by filling with iterator according to array of size-hint.  <a href="#a459c8a266ba71f31763d56a55664d1bd">More...</a><br /></td></tr>
<tr class="separator:a459c8a266ba71f31763d56a55664d1bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb8212ce965b5dba409bacea4ef4f216"><td class="memItemLeft" align="right" valign="top"><a id="adb8212ce965b5dba409bacea4ef4f216"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1matrix.html#adb8212ce965b5dba409bacea4ef4f216">matrix</a> (<a class="el" href="classbn_1_1matrix.html">matrix</a>&lt; Elem &gt; const &amp;)=default</td></tr>
<tr class="memdesc:adb8212ce965b5dba409bacea4ef4f216"><td class="mdescLeft">&#160;</td><td class="mdescRight">(Copy ctor) <br /></td></tr>
<tr class="separator:adb8212ce965b5dba409bacea4ef4f216"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a348698b9f4daa68823ee1d65d1812a23"><td class="memItemLeft" align="right" valign="top"><a id="a348698b9f4daa68823ee1d65d1812a23"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1matrix.html#a348698b9f4daa68823ee1d65d1812a23">matrix</a> (<a class="el" href="classbn_1_1matrix.html">matrix</a>&lt; Elem &gt; &amp;&amp;)=default</td></tr>
<tr class="memdesc:a348698b9f4daa68823ee1d65d1812a23"><td class="mdescLeft">&#160;</td><td class="mdescRight">(Move ctor) <br /></td></tr>
<tr class="separator:a348698b9f4daa68823ee1d65d1812a23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ce130d6fb380775db9c7f52f1659ef1"><td class="memItemLeft" align="right" valign="top"><a id="a4ce130d6fb380775db9c7f52f1659ef1"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1matrix.html#a4ce130d6fb380775db9c7f52f1659ef1">~matrix</a> ()=default</td></tr>
<tr class="memdesc:a4ce130d6fb380775db9c7f52f1659ef1"><td class="mdescLeft">&#160;</td><td class="mdescRight">(Default dtor) <br /></td></tr>
<tr class="separator:a4ce130d6fb380775db9c7f52f1659ef1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a60830fc91ed434016860539ed06401c0"><td class="memTemplParams" colspan="2">template&lt;class T &gt; </td></tr>
<tr class="memitem:a60830fc91ed434016860539ed06401c0"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classbn_1_1matrix.html#a60830fc91ed434016860539ed06401c0">assign</a> (T const &amp;<a class="el" href="classbn_1_1matrix.html#a9c7cfceac13610b514bbbd989ca8cfa6">sizes</a>, Elem const &amp;default_value)</td></tr>
<tr class="memdesc:a60830fc91ed434016860539ed06401c0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assign matrix by filling with default_value according to array of size-hint.  <a href="#a60830fc91ed434016860539ed06401c0">More...</a><br /></td></tr>
<tr class="separator:a60830fc91ed434016860539ed06401c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a98d26009d1ddc26e13285caf123aff1e"><td class="memTemplParams" colspan="2">template&lt;class T , class U &gt; </td></tr>
<tr class="memitem:a98d26009d1ddc26e13285caf123aff1e"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classbn_1_1matrix.html#a98d26009d1ddc26e13285caf123aff1e">assign</a> (T const &amp;<a class="el" href="classbn_1_1matrix.html#a9c7cfceac13610b514bbbd989ca8cfa6">sizes</a>, U const &amp;default_values)</td></tr>
<tr class="memdesc:a98d26009d1ddc26e13285caf123aff1e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assign matrix by filling with iterator according to array of size-hint.  <a href="#a98d26009d1ddc26e13285caf123aff1e">More...</a><br /></td></tr>
<tr class="separator:a98d26009d1ddc26e13285caf123aff1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9371208ba17a01c57baaa28a71c63dd9"><td class="memTemplParams" colspan="2">template&lt;class T , class InputIterator &gt; </td></tr>
<tr class="memitem:a9371208ba17a01c57baaa28a71c63dd9"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classbn_1_1matrix.html#a9371208ba17a01c57baaa28a71c63dd9">assign</a> (T const &amp;<a class="el" href="classbn_1_1matrix.html#a9c7cfceac13610b514bbbd989ca8cfa6">sizes</a>, InputIterator first, InputIterator last)</td></tr>
<tr class="memdesc:a9371208ba17a01c57baaa28a71c63dd9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assign matrix by filling with iterator according to array of size-hint.  <a href="#a9371208ba17a01c57baaa28a71c63dd9">More...</a><br /></td></tr>
<tr class="separator:a9371208ba17a01c57baaa28a71c63dd9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa12a1b9eb3a7b878f802f00a1546ff36"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbn_1_1matrix.html">matrix</a>&lt; Elem &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1matrix.html#aa12a1b9eb3a7b878f802f00a1546ff36">operator=</a> (<a class="el" href="classbn_1_1matrix.html">matrix</a>&lt; Elem &gt; const &amp;rhs)</td></tr>
<tr class="memdesc:aa12a1b9eb3a7b878f802f00a1546ff36"><td class="mdescLeft">&#160;</td><td class="mdescRight">(Copy operator=) Initialize nodes and arcs by copying a parameter.  <a href="#aa12a1b9eb3a7b878f802f00a1546ff36">More...</a><br /></td></tr>
<tr class="separator:aa12a1b9eb3a7b878f802f00a1546ff36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4083434427a4cbb9bbae1906bc8f4daf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbn_1_1matrix.html">matrix</a>&lt; Elem &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1matrix.html#a4083434427a4cbb9bbae1906bc8f4daf">operator=</a> (<a class="el" href="classbn_1_1matrix.html">matrix</a>&lt; Elem &gt; &amp;&amp;)=default</td></tr>
<tr class="memdesc:a4083434427a4cbb9bbae1906bc8f4daf"><td class="mdescLeft">&#160;</td><td class="mdescRight">(Move operator=) Initialize nodes and arcs by copying a parameter.  <a href="#a4083434427a4cbb9bbae1906bc8f4daf">More...</a><br /></td></tr>
<tr class="separator:a4083434427a4cbb9bbae1906bc8f4daf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3d73b3386b91bda9c8b0c921e4a3eb2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1matrix.html#ae3d73b3386b91bda9c8b0c921e4a3eb2">clear</a> () noexcept</td></tr>
<tr class="memdesc:ae3d73b3386b91bda9c8b0c921e4a3eb2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clear martix's all data.  <a href="#ae3d73b3386b91bda9c8b0c921e4a3eb2">More...</a><br /></td></tr>
<tr class="separator:ae3d73b3386b91bda9c8b0c921e4a3eb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7759ddc8741828f255f49b840a362760"><td class="memTemplParams" colspan="2">template&lt;class T &gt; </td></tr>
<tr class="memitem:a7759ddc8741828f255f49b840a362760"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classbn_1_1matrix.html#a7759ddc8741828f255f49b840a362760">resize</a> (T const &amp;<a class="el" href="classbn_1_1matrix.html#a9c7cfceac13610b514bbbd989ca8cfa6">sizes</a>)</td></tr>
<tr class="memdesc:a7759ddc8741828f255f49b840a362760"><td class="mdescLeft">&#160;</td><td class="mdescRight">Resize this container by argument sizes.  <a href="#a7759ddc8741828f255f49b840a362760">More...</a><br /></td></tr>
<tr class="separator:a7759ddc8741828f255f49b840a362760"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e1b038dd03db87b6cfa9bafd54186a9"><td class="memTemplParams" colspan="2">template&lt;class T &gt; </td></tr>
<tr class="memitem:a3e1b038dd03db87b6cfa9bafd54186a9"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classbn_1_1matrix.html#a3e1b038dd03db87b6cfa9bafd54186a9">resize</a> (T const &amp;<a class="el" href="classbn_1_1matrix.html#a9c7cfceac13610b514bbbd989ca8cfa6">sizes</a>, Elem const &amp;value)</td></tr>
<tr class="memdesc:a3e1b038dd03db87b6cfa9bafd54186a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Resize this container by argument sizes when filling extended elements by value.  <a href="#a3e1b038dd03db87b6cfa9bafd54186a9">More...</a><br /></td></tr>
<tr class="separator:a3e1b038dd03db87b6cfa9bafd54186a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af844d28ea7f62f17ae82e33a41b01b88"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1matrix.html#af844d28ea7f62f17ae82e33a41b01b88">shrink_to_fit</a> ()</td></tr>
<tr class="memdesc:af844d28ea7f62f17ae82e33a41b01b88"><td class="mdescLeft">&#160;</td><td class="mdescRight">Request the removal of unused capacity.  <a href="#af844d28ea7f62f17ae82e33a41b01b88">More...</a><br /></td></tr>
<tr class="separator:af844d28ea7f62f17ae82e33a41b01b88"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a142ce97a5068a2c0b1677adf45f5b041"><td class="memTemplParams" colspan="2">template&lt;class T &gt; </td></tr>
<tr class="memitem:a142ce97a5068a2c0b1677adf45f5b041"><td class="memTemplItemLeft" align="right" valign="top">Elem &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classbn_1_1matrix.html#a142ce97a5068a2c0b1677adf45f5b041">at</a> (T const &amp;index)</td></tr>
<tr class="memdesc:a142ce97a5068a2c0b1677adf45f5b041"><td class="mdescLeft">&#160;</td><td class="mdescRight">Access to element.  <a href="#a142ce97a5068a2c0b1677adf45f5b041">More...</a><br /></td></tr>
<tr class="separator:a142ce97a5068a2c0b1677adf45f5b041"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a664fcd30c64d54a158bb777b575604de"><td class="memTemplParams" colspan="2">template&lt;class T &gt; </td></tr>
<tr class="memitem:a664fcd30c64d54a158bb777b575604de"><td class="memTemplItemLeft" align="right" valign="top">Elem const  &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classbn_1_1matrix.html#a664fcd30c64d54a158bb777b575604de">at</a> (T const &amp;index) const</td></tr>
<tr class="memdesc:a664fcd30c64d54a158bb777b575604de"><td class="mdescLeft">&#160;</td><td class="mdescRight">Access to element (const version).  <a href="#a664fcd30c64d54a158bb777b575604de">More...</a><br /></td></tr>
<tr class="separator:a664fcd30c64d54a158bb777b575604de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a33eb833c89d7ff4650e04eec6f817a5c"><td class="memTemplParams" colspan="2">template&lt;class T &gt; </td></tr>
<tr class="memitem:a33eb833c89d7ff4650e04eec6f817a5c"><td class="memTemplItemLeft" align="right" valign="top">Elem &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classbn_1_1matrix.html#a33eb833c89d7ff4650e04eec6f817a5c">operator[]</a> (T const &amp;index)</td></tr>
<tr class="memdesc:a33eb833c89d7ff4650e04eec6f817a5c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Access to element.  <a href="#a33eb833c89d7ff4650e04eec6f817a5c">More...</a><br /></td></tr>
<tr class="separator:a33eb833c89d7ff4650e04eec6f817a5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af04545f545f702140fcb254e7d885676"><td class="memTemplParams" colspan="2">template&lt;class T &gt; </td></tr>
<tr class="memitem:af04545f545f702140fcb254e7d885676"><td class="memTemplItemLeft" align="right" valign="top">Elem const  &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classbn_1_1matrix.html#af04545f545f702140fcb254e7d885676">operator[]</a> (T const &amp;index) const</td></tr>
<tr class="memdesc:af04545f545f702140fcb254e7d885676"><td class="mdescLeft">&#160;</td><td class="mdescRight">Access to element (const version).  <a href="#af04545f545f702140fcb254e7d885676">More...</a><br /></td></tr>
<tr class="separator:af04545f545f702140fcb254e7d885676"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a857d396deabbea605c73dfff079ddcfa"><td class="memItemLeft" align="right" valign="top"><a id="a857d396deabbea605c73dfff079ddcfa"></a>
std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1matrix.html#a857d396deabbea605c73dfff079ddcfa">dims</a> () const noexcept</td></tr>
<tr class="memdesc:a857d396deabbea605c73dfff079ddcfa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the number of matrix dimentions. <br /></td></tr>
<tr class="separator:a857d396deabbea605c73dfff079ddcfa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c7cfceac13610b514bbbd989ca8cfa6"><td class="memItemLeft" align="right" valign="top"><a id="a9c7cfceac13610b514bbbd989ca8cfa6"></a>
sizes_type const  &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1matrix.html#a9c7cfceac13610b514bbbd989ca8cfa6">sizes</a> () const noexcept</td></tr>
<tr class="memdesc:a9c7cfceac13610b514bbbd989ca8cfa6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get size of each dimentions. <br /></td></tr>
<tr class="separator:a9c7cfceac13610b514bbbd989ca8cfa6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a548d7bbdb08fa63bafdf476d7b4e41cf"><td class="memItemLeft" align="right" valign="top"><a id="a548d7bbdb08fa63bafdf476d7b4e41cf"></a>
sizes_type const  &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1matrix.html#a548d7bbdb08fa63bafdf476d7b4e41cf">capacities</a> () const noexcept</td></tr>
<tr class="memdesc:a548d7bbdb08fa63bafdf476d7b4e41cf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get capacity of each dimentions. <br /></td></tr>
<tr class="separator:a548d7bbdb08fa63bafdf476d7b4e41cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ca99e195834d4c546d9fb078caa3cf1"><td class="memItemLeft" align="right" valign="top"><a id="a4ca99e195834d4c546d9fb078caa3cf1"></a>
steps_type const  &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1matrix.html#a4ca99e195834d4c546d9fb078caa3cf1">steps</a> () const noexcept</td></tr>
<tr class="memdesc:a4ca99e195834d4c546d9fb078caa3cf1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get steps of each dimentions. <br /></td></tr>
<tr class="separator:a4ca99e195834d4c546d9fb078caa3cf1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac76b747af4f124864cb5708de65a6bf1"><td class="memItemLeft" align="right" valign="top"><a id="ac76b747af4f124864cb5708de65a6bf1"></a>
data_type const  &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1matrix.html#ac76b747af4f124864cb5708de65a6bf1">data</a> () noexcept</td></tr>
<tr class="memdesc:ac76b747af4f124864cb5708de65a6bf1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Access to const raw data. <br /></td></tr>
<tr class="separator:ac76b747af4f124864cb5708de65a6bf1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a498577761a872ab0b03587aa71f7c02f"><td class="memItemLeft" align="right" valign="top"><a id="a498577761a872ab0b03587aa71f7c02f"></a>
data_type const  &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1matrix.html#a498577761a872ab0b03587aa71f7c02f">data</a> () const noexcept</td></tr>
<tr class="memdesc:a498577761a872ab0b03587aa71f7c02f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Access to const raw data. <br /></td></tr>
<tr class="separator:a498577761a872ab0b03587aa71f7c02f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87b03b99cd212c9255ca6c52252ec91c"><td class="memTemplParams" colspan="2">template&lt;class T &gt; </td></tr>
<tr class="memitem:a87b03b99cd212c9255ca6c52252ec91c"><td class="memTemplItemLeft" align="right" valign="top">double&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classbn_1_1matrix.html#a87b03b99cd212c9255ca6c52252ec91c">dot</a> (<a class="el" href="classbn_1_1matrix.html">matrix</a>&lt; T &gt; const &amp;other) const</td></tr>
<tr class="memdesc:a87b03b99cd212c9255ca6c52252ec91c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calculate matrix inner product (dot).  <a href="#a87b03b99cd212c9255ca6c52252ec91c">More...</a><br /></td></tr>
<tr class="separator:a87b03b99cd212c9255ca6c52252ec91c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;class Elem&gt;<br />
class bn::matrix&lt; Elem &gt;</h3>

<p>Provide a class representing dinamic N dimensions (N is equal to or greater than 1). </p>
<p>Dimensions can be determined at run time. Element access can be performed by std::vector&lt;std::size_t&gt; instead of operetors [][]...[].</p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Elem</td><td>Type of elements hold by matrix&lt;Elem&gt;. </td></tr>
  </table>
  </dd>
</dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="aacae73faaa834a43566c9faf21aa49a6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aacae73faaa834a43566c9faf21aa49a6">&#9670;&nbsp;</a></span>matrix() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Elem&gt; </div>
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classbn_1_1matrix.html">bn::matrix</a>&lt; Elem &gt;::<a class="el" href="classbn_1_1matrix.html">matrix</a> </td>
          <td>(</td>
          <td class="paramtype">T const &amp;&#160;</td>
          <td class="paramname"><em>sizes</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>(ctor) Initialize matrix according to array of size-hint. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">T</td><td>Type of list containing size information. </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">sizes</td><td>a list containing sizes of each dimension in matrix, such that, sizes.size() == dimention. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a6e8cec7223de6b06c87c63b4902bc0e1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6e8cec7223de6b06c87c63b4902bc0e1">&#9670;&nbsp;</a></span>matrix() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Elem&gt; </div>
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classbn_1_1matrix.html">bn::matrix</a>&lt; Elem &gt;::<a class="el" href="classbn_1_1matrix.html">matrix</a> </td>
          <td>(</td>
          <td class="paramtype">T const &amp;&#160;</td>
          <td class="paramname"><em>sizes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Elem const &amp;&#160;</td>
          <td class="paramname"><em>default_value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>(ctor) Initialize matrix by filling with default_value according to array of size-hint. </p>
<p>The same function of explicit <a class="el" href="classbn_1_1matrix.html#aacae73faaa834a43566c9faf21aa49a6" title="(ctor) Initialize matrix according to array of size-hint. ">matrix(T const&amp; size)</a> exist; however, every data is filled by default_value in this ctor.</p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">T</td><td>Type of list containing size information. </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">sizes</td><td>a list containing sizes of each dimension in matrix, such that, sizes.size() == dimention. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">default_value</td><td>a value used for filling. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a459c8a266ba71f31763d56a55664d1bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a459c8a266ba71f31763d56a55664d1bd">&#9670;&nbsp;</a></span>matrix() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Elem&gt; </div>
<div class="memtemplate">
template&lt;class T , class InputIterator &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classbn_1_1matrix.html">bn::matrix</a>&lt; Elem &gt;::<a class="el" href="classbn_1_1matrix.html">matrix</a> </td>
          <td>(</td>
          <td class="paramtype">T const &amp;&#160;</td>
          <td class="paramname"><em>sizes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">InputIterator&#160;</td>
          <td class="paramname"><em>first</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">InputIterator&#160;</td>
          <td class="paramname"><em>last</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>(ctor) Initialize matrix by filling with iterator according to array of size-hint. </p>
<p>The same function of explicit <a class="el" href="classbn_1_1matrix.html#aacae73faaa834a43566c9faf21aa49a6" title="(ctor) Initialize matrix according to array of size-hint. ">matrix(T const&amp; size)</a> exist; however, in this ctor, every data is filled by values of range [first, last).</p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">T</td><td>Type of list containing size information. </td></tr>
    <tr><td class="paramname">InputIterator</td><td>Type of iterator containing data to fill. </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">sizes</td><td>a list containing sizes of each dimension in matrix, such that, sizes.size() == dimention. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">first</td><td>iterator of begining of data to filling. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">last</td><td>iterator of ending of data to filling. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a60830fc91ed434016860539ed06401c0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a60830fc91ed434016860539ed06401c0">&#9670;&nbsp;</a></span>assign() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Elem&gt; </div>
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classbn_1_1matrix.html">bn::matrix</a>&lt; Elem &gt;::assign </td>
          <td>(</td>
          <td class="paramtype">T const &amp;&#160;</td>
          <td class="paramname"><em>sizes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Elem const &amp;&#160;</td>
          <td class="paramname"><em>default_value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Assign matrix by filling with default_value according to array of size-hint. </p>
<p>Strong guarantee: if an exception is thrown, there are no changes in the matrix.</p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">T</td><td>Type of list containing size information. </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">sizes</td><td>a list containing sizes of each dimension in matrix, such that, sizes.size() == dimention. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">default_value</td><td>a value used for filling. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a98d26009d1ddc26e13285caf123aff1e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a98d26009d1ddc26e13285caf123aff1e">&#9670;&nbsp;</a></span>assign() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Elem&gt; </div>
<div class="memtemplate">
template&lt;class T , class U &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classbn_1_1matrix.html">bn::matrix</a>&lt; Elem &gt;::assign </td>
          <td>(</td>
          <td class="paramtype">T const &amp;&#160;</td>
          <td class="paramname"><em>sizes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">U const &amp;&#160;</td>
          <td class="paramname"><em>default_values</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Assign matrix by filling with iterator according to array of size-hint. </p>
<p>Strong guarantee: if an exception is thrown, there are no changes in the matrix.</p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">T</td><td>Type of list containing size information. </td></tr>
    <tr><td class="paramname">U</td><td>Type of list containing default values. </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">sizes</td><td>a list containing sizes of each dimension in matrix, such that, sizes.size() == dimention. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">default_values</td><td>values used for filling. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a9371208ba17a01c57baaa28a71c63dd9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9371208ba17a01c57baaa28a71c63dd9">&#9670;&nbsp;</a></span>assign() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Elem&gt; </div>
<div class="memtemplate">
template&lt;class T , class InputIterator &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classbn_1_1matrix.html">bn::matrix</a>&lt; Elem &gt;::assign </td>
          <td>(</td>
          <td class="paramtype">T const &amp;&#160;</td>
          <td class="paramname"><em>sizes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">InputIterator&#160;</td>
          <td class="paramname"><em>first</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">InputIterator&#160;</td>
          <td class="paramname"><em>last</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Assign matrix by filling with iterator according to array of size-hint. </p>
<p>Strong guarantee: if an exception is thrown, there are no changes in the matrix.</p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">T</td><td>Type of list containing size information. </td></tr>
    <tr><td class="paramname">InputIterator</td><td>Type of iterator containing data to fill. </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">sizes</td><td>a list containing sizes of each dimension in matrix, such that, sizes.size() == dimention. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">first</td><td>iterator of begining of data to filling. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">last</td><td>iterator of ending of data to filling. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a142ce97a5068a2c0b1677adf45f5b041"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a142ce97a5068a2c0b1677adf45f5b041">&#9670;&nbsp;</a></span>at() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Elem&gt; </div>
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Elem&amp; <a class="el" href="classbn_1_1matrix.html">bn::matrix</a>&lt; Elem &gt;::at </td>
          <td>(</td>
          <td class="paramtype">T const &amp;&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Access to element. </p>
<p>If index is invalid, then throw std::runtime_error. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">index</td><td>std::vector, std::array, or more (overloaded std::cbegin, std::cend). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a664fcd30c64d54a158bb777b575604de"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a664fcd30c64d54a158bb777b575604de">&#9670;&nbsp;</a></span>at() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Elem&gt; </div>
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Elem const&amp; <a class="el" href="classbn_1_1matrix.html">bn::matrix</a>&lt; Elem &gt;::at </td>
          <td>(</td>
          <td class="paramtype">T const &amp;&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Access to element (const version). </p>
<p>If index is invalid, then throw std::runtime_error.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">index</td><td>std::vector, std::array, or more (overloaded std::cbegin, std::cend). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ae3d73b3386b91bda9c8b0c921e4a3eb2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae3d73b3386b91bda9c8b0c921e4a3eb2">&#9670;&nbsp;</a></span>clear()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Elem&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classbn_1_1matrix.html">bn::matrix</a>&lt; Elem &gt;::clear </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Clear martix's all data. </p>
<p>This function invelidate member variables' any past-the-end iterators, pointers, and references based on the specification of std::vector. No-throw guarantee: never throws exceptions. </p>

</div>
</div>
<a id="a87b03b99cd212c9255ca6c52252ec91c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a87b03b99cd212c9255ca6c52252ec91c">&#9670;&nbsp;</a></span>dot()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Elem&gt; </div>
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classbn_1_1matrix.html">bn::matrix</a>&lt; Elem &gt;::dot </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classbn_1_1matrix.html">matrix</a>&lt; T &gt; const &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Calculate matrix inner product (dot). </p>
<p>This is left hand, other is right hand.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">other</td><td>other or this instance of <a class="el" href="classbn_1_1matrix.html" title="Provide a class representing dinamic N dimensions (N is equal to or greater than 1). ">bn::matrix</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aa12a1b9eb3a7b878f802f00a1546ff36"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa12a1b9eb3a7b878f802f00a1546ff36">&#9670;&nbsp;</a></span>operator=() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Elem&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classbn_1_1matrix.html">matrix</a>&lt;Elem&gt;&amp; <a class="el" href="classbn_1_1matrix.html">bn::matrix</a>&lt; Elem &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classbn_1_1matrix.html">matrix</a>&lt; Elem &gt; const &amp;&#160;</td>
          <td class="paramname"><em>rhs</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>(Copy operator=) Initialize nodes and arcs by copying a parameter. </p>
<p>Strong guarantee: if an exception is thrown, there are no changes in the matrix. </p>

</div>
</div>
<a id="a4083434427a4cbb9bbae1906bc8f4daf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4083434427a4cbb9bbae1906bc8f4daf">&#9670;&nbsp;</a></span>operator=() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Elem&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classbn_1_1matrix.html">matrix</a>&lt;Elem&gt;&amp; <a class="el" href="classbn_1_1matrix.html">bn::matrix</a>&lt; Elem &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classbn_1_1matrix.html">matrix</a>&lt; Elem &gt; &amp;&amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">default</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>(Move operator=) Initialize nodes and arcs by copying a parameter. </p>
<p>The parameter will be destroyed. Strong guarantee: if an exception is thrown, there are no changes in the matrix. </p>

</div>
</div>
<a id="a33eb833c89d7ff4650e04eec6f817a5c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a33eb833c89d7ff4650e04eec6f817a5c">&#9670;&nbsp;</a></span>operator[]() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Elem&gt; </div>
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Elem&amp; <a class="el" href="classbn_1_1matrix.html">bn::matrix</a>&lt; Elem &gt;::operator[] </td>
          <td>(</td>
          <td class="paramtype">T const &amp;&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Access to element. </p>
<p>If index is invalid, this function encounter undefined behavior.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">index</td><td>std::vector, std::array, or more (overloaded std::cbegin, std::cend). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="af04545f545f702140fcb254e7d885676"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af04545f545f702140fcb254e7d885676">&#9670;&nbsp;</a></span>operator[]() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Elem&gt; </div>
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Elem const&amp; <a class="el" href="classbn_1_1matrix.html">bn::matrix</a>&lt; Elem &gt;::operator[] </td>
          <td>(</td>
          <td class="paramtype">T const &amp;&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Access to element (const version). </p>
<p>If index is invalid, this function encounter undefined behavior.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">index</td><td>std::vector, std::array, or more (overloaded std::cbegin, std::cend). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a7759ddc8741828f255f49b840a362760"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7759ddc8741828f255f49b840a362760">&#9670;&nbsp;</a></span>resize() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Elem&gt; </div>
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classbn_1_1matrix.html">bn::matrix</a>&lt; Elem &gt;::resize </td>
          <td>(</td>
          <td class="paramtype">T const &amp;&#160;</td>
          <td class="paramname"><em>sizes</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Resize this container by argument sizes. </p>
<p>If a element of sizes which is larger than capacity corresponding to the same index is exist, matrix is resized by allocating new memory space; otherwise, size_ is updated while keeping capacities_. Strong guarantee: if an exception is thrown, there are no changes in the matrix.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">sizes</td><td>a list containing sizes of each dimension in matrix. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a3e1b038dd03db87b6cfa9bafd54186a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3e1b038dd03db87b6cfa9bafd54186a9">&#9670;&nbsp;</a></span>resize() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Elem&gt; </div>
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classbn_1_1matrix.html">bn::matrix</a>&lt; Elem &gt;::resize </td>
          <td>(</td>
          <td class="paramtype">T const &amp;&#160;</td>
          <td class="paramname"><em>sizes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Elem const &amp;&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Resize this container by argument sizes when filling extended elements by value. </p>
<p>If a element of sizes which is larger than capacity corresponding to the same index is exist, matrix is resized by allocating new memory space; otherwise, size_ is updated while keeping capacities_. Strong guarantee: if an exception is thrown, there are no changes in the matrix.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">sizes</td><td>a list containing sizes of each dimension in matrix. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>a value which is used for filling extended elements. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="af844d28ea7f62f17ae82e33a41b01b88"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af844d28ea7f62f17ae82e33a41b01b88">&#9670;&nbsp;</a></span>shrink_to_fit()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Elem&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classbn_1_1matrix.html">bn::matrix</a>&lt; Elem &gt;::shrink_to_fit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Request the removal of unused capacity. </p>
<p>This function reduce capacities to size. If any variable of Elem can be swapped with another by no-throw guarantee, the function never throws exceptions (no-throw guarantee). Otherwise, if an exception is thrown, this instance is in a valid state (Basic guarantee). </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>bayesian/<a class="el" href="matrix_8hpp_source.html">matrix.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
